using System;
using System.Collections;

namespace Com.CMS263.PO
{
	#region CommentResult

	/// <summary>
	/// CommentResult object for NHibernate mapped table 'Comment_Result'.
	/// </summary>
	public class CommentResult
	{
		#region Member Variables
		
		protected int _id;
		protected int _comId;
		protected string _contents;
		protected string _files;
		protected int _redirecter;
		protected DateTime _addDate;

		#endregion

		#region Constructors

		public CommentResult() { }

		public CommentResult( int comId, string contents, string files, int redirecter, DateTime addDate )
		{
			this._comId = comId;
			this._contents = contents;
			this._files = files;
			this._redirecter = redirecter;
			this._addDate = addDate;
		}

		#endregion

		#region Public Properties

		public virtual int Id
		{
			get {return _id;}
			set {_id = value;}
		}

		public  virtual int ComId
		{
			get { return _comId; }
			set { _comId = value; }
		}

		public  virtual string Contents
		{
			get { return _contents; }
			set
			{
				if ( value != null && value.Length > 4000)
					throw new ArgumentOutOfRangeException("Invalid value for Contents", value, value.ToString());
				_contents = value;
			}
		}

		public  virtual string Files
		{
			get { return _files; }
			set
			{
				if ( value != null && value.Length > 500)
					throw new ArgumentOutOfRangeException("Invalid value for Files", value, value.ToString());
				_files = value;
			}
		}

		public  virtual int Redirecter
		{
			get { return _redirecter; }
			set { _redirecter = value; }
		}

		public  virtual DateTime AddDate
		{
			get { return _addDate; }
			set { _addDate = value; }
		}

		

		#endregion
	}
	#endregion
}